#Detect ajax-call (including Rails-ajax and Jquery-Ajax), still not working!! Dunno why!!! Just leave it here
def redirect_to(options = {}, response_status = {})
 if request.xhr?
    puts '>>>>>>xxx'
   render :update do |page|
      puts "hehehe"
      page.redirect_to (options)
   end
 else
   super(options, response_status)
 end
end